<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GamePrize extends Model
{
    protected $table = 'game_prize';

    protected $guarded = [''];

    protected function getDateFormat()
    {
        return 'U';
    }

    public function game()
    {
        return $this->belongsTo('App\Models\Game', 'game_id', 'id');
    }

    public function goods()
    {
        return $this->belongsTo('App\Models\GameGoods', 'goods_id', 'id');
    }

    public function type()
    {
        return $this->belongsTo('App\Models\Game', 'game_id', 'id');
    }

}
